git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Security issues with openssl.exe

From
Matthias Aßhauer <mha1993@live.de>
Date
Oct 7, 2021, 16:28 UTC
Message-ID
<AM0PR04MB6019545C115A7161E83881A8A5B19@AM0PR04MB6019.eurprd04.prod.outlook.com>
In-Reply-To
<CAP_xbc=ag3+Bkvwtou4ZaYrnVm67kb37=oZEc5eTx8FsufhV=Q@mail.gmail.com>
On Thu, 7 Oct 2021, Rene Hutschenreuter wrote:
Show 32 quoted lines
> Dear Sir or Madam,
>
> in our company we currently use GIT for programming tasks. Furthermore
> we use a VPN to connect to the company network.
>
> This VPN now prevents this connection due to a security problem with
> the "openssl.exe" in the GIT installation folder:
> - C:\Program Files\Git\mingw64\bin\openssl.exe
>
> Description-Text: In order to decrypt SM2 encrypted data an
> application is expected to call the API function EVP_PKEY_decrypt().
> Typically an application will call this function twice. The first
> time, on entry, the \"out\" parameter can be NULL and, on exit, the
> \"outlen\" parameter is populated with the buffer size required to
> hold the decrypted plaintext. The application can then allocate a
> sufficiently sized buffer and call EVP_PKEY_decrypt() again, but this
> time passing a non-NULL value for the \"out\" parameter. A bug in the
> implementation of the SM2 decryption code means that the calculation
> of the buffer size required to hold the plaintext returned by the
> first call to EVP_PKEY_decrypt() can be smaller than the actual size
> required by the second call. This can lead to a buffer overflow when
> EVP_PKEY_decrypt() is called by the application a second time with a
> buffer that is too small. A malicious attacker who is able present SM2
> content for decryption to an application could cause attacker chosen
> data to overflow the buffer by up to a maximum of 62 bytes altering
> the contents of other data held after the buffer, possibly changing
> application behaviour or causing the application to crash. The
> location of the buffer is application dependent but is typically heap
> allocated. Fixed in OpenSSL 1.1.1l (Affected 1.1.1-1.1.1k).
>
> Could you please provide a new Git version with an updated openssl.exe
> to fix this security issues?

This sounds like you're talking about Git for Windows and specifically CVE-2021-3711. The Git for Windows team assesed the situation and determined the issue unlikely to be exploitable via Git's usage of OpenSSL.

The next regular Git for Windows release (likely 2.34.0, to be released soon after the 15th of November) will include OpenSSL 1.1.1l (or newer). In the meantime you can try the latest snapshot[1] to get a Git for Windows build that includes OpenSSL 1.1.1l.

[1] https://wingit.blob.core.windows.net/files/index.html
> Best regards
> René Hutschenreuter
> Developer
>
Best regards
Matthias Aßhauer
Previous: Rene Hutschenreuter
Message 2 of 2 in “Re: Security issues with openssl.exe”
  1. Rene HutschenreuterOct 7, 2021
  2. Matthias AßhauerOct 7, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.