Skip to content

Commit 6641413

Browse files
richardlauaduh95
authored andcommitted
crypto: fix RSA_PKCS1_PADDING error message
The ability to revert the fix for CVE-2023-46809 was only added to Node.js 18.x, 20.x and 21.x as, per policy, security reverts are only added to the existing supported release lines at the time of the fix. The error message thrown when `RSA_PKCS1_PADDING` is used on `main` and subsequent major versions (i.e. Node.js 22 and 23) when OpenSSL does not support implicit rejections should not have suggested that it is possible to revert the fix. PR-URL: #55629 Fixes: #55628 Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
1 parent fa4d802 commit 6641413

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/crypto/crypto_cipher.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1092,8 +1092,7 @@ void PublicKeyCipher::Cipher(const FunctionCallbackInfo<Value>& args) {
10921092
if (rsa_pkcs1_implicit_rejection <= 0) {
10931093
return THROW_ERR_INVALID_ARG_VALUE(
10941094
env,
1095-
"RSA_PKCS1_PADDING is no longer supported for private decryption,"
1096-
" this can be reverted with --security-revert=CVE-2024-PEND");
1095+
"RSA_PKCS1_PADDING is no longer supported for private decryption");
10971096
}
10981097
}
10991098

0 commit comments

Comments
 (0)