{"id":"CVE-2024-28864","sourceIdentifier":"security-advisories@github.com","published":"2024-03-18T22:15:09.247","lastModified":"2026-06-17T07:21:54.837","vulnStatus":"Analyzed","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"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."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"IlicMiljan","product":"Secure-Props","versions":[{"version":">= 1.2.0, < 1.2.2","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N","baseScore":2.6,"baseSeverity":"LOW","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE"},"exploitabilityScore":1.2,"impactScore":1.4}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2024-07-16T00:14:33.422779Z","id":"CVE-2024-28864","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-1333"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:ilicmiljan:secureprops:1.2.0:*:*:*:*:*:*:*","matchCriteriaId":"E2CBA677-3A3B-46D2-85F9-783B2E074B33"},{"vulnerable":true,"criteria":"cpe:2.3:a:ilicmiljan:secureprops:1.2.1:*:*:*:*:*:*:*","matchCriteriaId":"2CEC5D40-1169-4895-9142-D7618D98832D"}]}]}],"references":[{"url":"https://github.com/IlicMiljan/Secure-Props/commit/ab7b561040cd37fda3dbf9a6cab01fefcaa16627","source":"security-advisories@github.com","tags":["Technical Description"]},{"url":"https://github.com/IlicMiljan/Secure-Props/issues/20","source":"security-advisories@github.com","tags":["Issue Tracking","Mitigation"]},{"url":"https://github.com/IlicMiljan/Secure-Props/pull/21","source":"security-advisories@github.com","tags":["Issue Tracking"]},{"url":"https://github.com/IlicMiljan/Secure-Props/security/advisories/GHSA-rj29-j2g4-77q8","source":"security-advisories@github.com","tags":["Vendor Advisory"]},{"url":"https://github.com/IlicMiljan/Secure-Props/commit/ab7b561040cd37fda3dbf9a6cab01fefcaa16627","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Technical Description"]},{"url":"https://github.com/IlicMiljan/Secure-Props/issues/20","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking","Mitigation"]},{"url":"https://github.com/IlicMiljan/Secure-Props/pull/21","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking"]},{"url":"https://github.com/IlicMiljan/Secure-Props/security/advisories/GHSA-rj29-j2g4-77q8","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"]}]}