CVE-2017-20178: Codiad information disclosure vulnerability
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.25813%
CWE
Published
2/21/2023
Updated
10/20/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
codiad/codiad | composer | < 2.8.1 | 2.8.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the saveJSON function's insecure data formatting. The original implementation wrote JSON data as a PHP comment without line breaks (<?php/*|{data}|*/?>). This structure could be misinterpreted by some PHP processors, allowing the JSON payload to be served as plaintext. The patch explicitly adds \r\n line breaks around the JSON data to ensure proper comment parsing. The function's direct role in handling sensitive data storage and the explicit reference in CVE/GHSA advisories confirm its vulnerability.