{"id":"CVE-2024-28864","aliases":["CVE-2024-28864","GHSA-rj29-j2g4-77q8"],"related":[],"kind":"vulnerability","state":"published","title":"[TagAwareCipher] - Decryption Failure (Regex Match)","summary":"SecureProps is a PHP library designed to simplify the encryption and decryption of property data in objects. A vulnerability in SecureProps version 1.2.0 and 1.2.1 involves a regex failing to detect tags during decryption of encrypted data. This occurs when the encrypted data has been encoded with `NullEncoder` and passed to `TagAwareCipher`, and contains special characters such as `\\n`. As a result, the decryption process is skipped since the tags are not detected. This causes the encrypted data to be returned in plain format.  The vulnerability affects users who implement `TagAwareCipher` with any base cipher that has `NullEncoder` (not default). The patch for the issue has been released. Users are advised to update to version 1.2.2. As a workaround, one may use the default `Base64Encoder` with the base cipher decorated with `TagAwareCipher` to prevent special characters in the encrypted string from interfering with regex tag detection logic.  This workaround is safe but may involve double encoding since `TagAwareCipher` uses `NullEncoder` by default.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"SecureProps is a PHP library designed to simplify the encryption and decryption of property data in objects. A vulnerability in SecureProps version 1.2.0 and 1.2.1 involves a regex failing to detect tags during decryption of encrypted data. This occurs when the encrypted data has been encoded with `NullEncoder` and passed to `TagAwareCipher`, and contains special characters such as `\\n`. As a result, the decryption process is skipped since the tags are not detected. This causes the encrypted data to be returned in plain format.  The vulnerability affects users who implement `TagAwareCipher` with any base cipher that has `NullEncoder` (not default). The patch for the issue has been released. Users are advised to update to version 1.2.2. As a workaround, one may use the default `Base64Encoder` with the base cipher decorated with `TagAwareCipher` to prevent special characters in the encrypted string from interfering with regex tag detection logic.  This workaround is safe but may involve double encoding since `TagAwareCipher` uses `NullEncoder` by default.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nVulnerability in **SecureProps** involves a regex failing to detect tags during decryption of encrypted data. \n\nThis occurs when the encrypted data has been encoded with `NullEncoder` and passed to `TagAwareCipher`, and contains special characters such as `\\n`. As a result, the decryption process is skipped since the tags are not detected. This causes the encrypted data to be returned in plain format. \n\nThe vulnerability affects users who implement `TagAwareCipher` with any base cipher that has `NullEncoder` (not default).\n\n### Patches\n\nThe patch for the issue has been released. Users are advised to update to version **1.2.2**.\n\n### Workarounds\n\n**The main recommendation is to update to the latest version as there are no breaking changes.**\n\nIf that's not possible, you can use the default `Base64Encoder` with the base cipher decorated with `TagAwareCipher` to prevent special characters in the encrypted string from interfering with regex tag detection logic. \n\nThis workaround is safe but may involve double encoding since `TagAwareCipher` uses `Base64Encoder` by default.\n \n### References\n\nReported issue: https://github.com/IlicMiljan/Secure-Props/issues/20\nPull request resolving bug: https://github.com/IlicMiljan/Secure-Props/pull/21","format":"markdown","source":"ghsa"},{"lang":"es","text":"SecureProps es una librería PHP diseñada para simplificar el cifrado y descifrado de datos de propiedades en objetos. Una vulnerabilidad en SecureProps versión 1.2.0 y 1.2.1 implica que una expresión regular no detecta etiquetas durante el descifrado de datos cifrados. Esto ocurre cuando los datos cifrados se codificaron con `NullEncoder` y se pasaron a `TagAwareCipher` y contienen caracteres especiales como `\\n`. Como resultado, se omite el proceso de descifrado ya que no se detectan las etiquetas. Esto hace que los datos cifrados se devuelvan en formato plano. La vulnerabilidad afecta a los usuarios que implementan `TagAwareCipher` con cualquier cifrado base que tenga `NullEncoder` (no predeterminado). Se ha publicado el parche para el problema. Se recomienda a los usuarios que actualicen a la versión 1.2.2. Como workaround, se puede utilizar el `Base64Encoder` predeterminado con el cifrado base decorado con `TagAwareCipher` para evitar que los caracteres especiales en la cadena cifrada interfieran con la lógica de detección de etiquetas regex. Este workaround es seguro pero puede implicar doble codificación ya que `TagAwareCipher` usa `NullEncoder` de forma predeterminada.","source":"nvd"}],"published":"2024-03-18T20:39:00.000Z","modified":"2026-09-10T03:50:10.857Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N","score":2.6,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N","score":2.6,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N","score":2.6,"rating":"LOW"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":">= 1.2.0, < 1.2.2","status":"affected"}],"vendor":"IlicMiljan","product":"Secure-Props","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.2.0","status":"affected","fixed":"1.2.2"}],"ecosystem":"Packagist","package":"ilicmiljan/secure-props","purl":"pkg:composer/ilicmiljan/secure-props","source":"ghsa"},{"ranges":[{"status":"affected","version":"1.2.0"},{"status":"affected","version":"1.2.1"}],"vendor":"ilicmiljan","product":"secureprops","cpe":"cpe:2.3:a:ilicmiljan:secureprops:1.2.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/IlicMiljan/Secure-Props/security/advisories/GHSA-rj29-j2g4-77q8","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/IlicMiljan/Secure-Props/issues/20","tags":["issue-tracking","mitigation","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/IlicMiljan/Secure-Props/pull/21","tags":["issue-tracking","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/IlicMiljan/Secure-Props/commit/ab7b561040cd37fda3dbf9a6cab01fefcaa16627","tags":["technical-description","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28864","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/IlicMiljan/Secure-Props","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-07-16T00:14:33.422Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-28864","url":"https://www.cve.org/CVERecord?id=CVE-2024-28864","licence":"CVE Terms of Use","modified":"2024-08-02T00:56:58.208Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rj29-j2g4-77q8","url":"https://github.com/advisories/GHSA-rj29-j2g4-77q8","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:10.857Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-28864","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28864","licence":"Public domain","modified":"2026-06-17T07:21:54.837Z"}],"updatedAt":"2026-11-25T22:58:37.692Z","epss":{"score":0.00328,"percentile":0.27915,"date":"2026-12-01T12:00:22.000Z"}}