{"id":"CVE-2024-28864","state":"PUBLISHED","title":"[TagAwareCipher] - Decryption Failure (Regex Match)","description":"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.","publishedAt":"2024-03-18T21:49:06.762Z","updatedAt":"2024-08-02T00:56:58.208Z","severity":{"score":2.6,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["IlicMiljan Secure-Props"],"affected":[{"vendor":"IlicMiljan","product":"Secure-Props","versions":[{"version":">= 1.2.0, < 1.2.2","status":"affected"}]}],"references":["https://github.com/IlicMiljan/Secure-Props/security/advisories/GHSA-rj29-j2g4-77q8","https://github.com/IlicMiljan/Secure-Props/issues/20","https://github.com/IlicMiljan/Secure-Props/pull/21","https://github.com/IlicMiljan/Secure-Props/commit/ab7b561040cd37fda3dbf9a6cab01fefcaa16627"],"weaknesses":["CWE-1333"],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/28xxx/CVE-2024-28864.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-28864","state":"PUBLISHED","datePublished":"2024-03-18T21:49:06.762Z","dateUpdated":"2024-08-02T00:56:58.208Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-03-11T22:45:07.687Z"},"containers":{"cna":{"title":"[TagAwareCipher] - Decryption Failure (Regex Match)","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."}],"affected":[{"vendor":"IlicMiljan","product":"Secure-Props","versions":[{"version":">= 1.2.0, < 1.2.2","status":"affected"}]}],"references":[{"url":"https://github.com/IlicMiljan/Secure-Props/security/advisories/GHSA-rj29-j2g4-77q8","name":"https://github.com/IlicMiljan/Secure-Props/security/advisories/GHSA-rj29-j2g4-77q8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/IlicMiljan/Secure-Props/issues/20","name":"https://github.com/IlicMiljan/Secure-Props/issues/20","tags":["x_refsource_MISC"]},{"url":"https://github.com/IlicMiljan/Secure-Props/pull/21","name":"https://github.com/IlicMiljan/Secure-Props/pull/21","tags":["x_refsource_MISC"]},{"url":"https://github.com/IlicMiljan/Secure-Props/commit/ab7b561040cd37fda3dbf9a6cab01fefcaa16627","name":"https://github.com/IlicMiljan/Secure-Props/commit/ab7b561040cd37fda3dbf9a6cab01fefcaa16627","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":2.6,"baseSeverity":"LOW","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1333","lang":"en","description":"CWE-1333: Inefficient Regular Expression Complexity","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-03-18T21:50:26.926Z"},"source":{"advisory":"GHSA-rj29-j2g4-77q8","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-07-16T00:14:33.422779Z","id":"CVE-2024-28864","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-16T00:14:39.027Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/IlicMiljan/Secure-Props/security/advisories/GHSA-rj29-j2g4-77q8","name":"https://github.com/IlicMiljan/Secure-Props/security/advisories/GHSA-rj29-j2g4-77q8","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/IlicMiljan/Secure-Props/issues/20","name":"https://github.com/IlicMiljan/Secure-Props/issues/20","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/IlicMiljan/Secure-Props/pull/21","name":"https://github.com/IlicMiljan/Secure-Props/pull/21","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/IlicMiljan/Secure-Props/commit/ab7b561040cd37fda3dbf9a6cab01fefcaa16627","name":"https://github.com/IlicMiljan/Secure-Props/commit/ab7b561040cd37fda3dbf9a6cab01fefcaa16627","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:56:58.208Z"}}]}}}