{"schemaVersion":3,"id":"CVE-2026-25790","aliases":[],"status":"published","duplicateOf":null,"title":"Wazuh has Stack-Based Buffer Overflow in Security Configuration Assessment JSON Parser","description":"Wazuh is a free and open source platform used for threat prevention, detection, and response. Starting in version 3.9.0 and prior to version 4.14.3, multiple stack-based buffer overflows exist in the Security Configuration Assessment (SCA) decoder (`wazuh-analysisd`). The use of `sprintf` with a floating-point (`%lf`) format specifier on a fixed-size 128-byte buffer allows a remote attacker to overflow the stack. A specially crafted JSON event can trigger this overflow, leading to a denial of service (crash) or potential RCE on the Wazuh manager. The vulnerability is located in `/src/analysisd/decoders/security_configuration_assessment.c`, within the `FillScanInfo` and `FillCheckEventInfo` functions. In multiple locations, a 128-byte buffer (`char value[OS_SIZE_128];`) is allocated on the stack to hold the string representation of a number from a JSON event. The code checks if the number is an integer or a double. If it's a double, it uses `sprintf(value, \"%lf\", ...)` to perform the conversion. This `sprintf` call is unbounded. If a floating-point number with a large exponent (e.g., `1.0e150`) is provided, `sprintf` will attempt to write its full string representation (a \"1\" followed by 150 zeros), which is larger than the 128-byte buffer, corrupting the stack. Version 4.14.3 patches the issue.","dates":{"published":"2026-03-17T18:41:45.834Z","modified":"2026-03-18T14:56:08.611Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.2,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.2,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00602,"percentile":0.48121,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0.21300000000000005,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00389},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00602,"percentile":0.48121}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00602,"percentile":0.48121}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_WAZUH_WAZUH","name":"Wazuh","source":"github","url":"https://github.com/wazuh/wazuh/issues/9201","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-121","name":"Stack-based Buffer Overflow","description":"A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/121.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"wazuh","product":"wazuh","name":"wazuh","label":"wazuh","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.9.0, < 4.14.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.9.0, < 4.14.3","eol":null,"hubHref":"/vendor/wazuh/wazuh"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/wazuh/wazuh/security/advisories/GHSA-cf24-hq8x-5jx2","label":"github.com/wazuh/wazuh/security/advisories/GHSA-cf24-hq8x-5jx2","hostname":"github.com","tags":["X Refsource CONFIRM","Exploit","Mitigation","Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-03-17T18:41:45.834Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-03-18T14:56:08.611Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":39,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T20:08:48.010Z","stale":false,"partial":false}}