Apple has released a new update that fixes a security flaw that has previously been a concern for the company. This is the second time that the bug has appeared in the company's products 
So, Apple released iOS 12.4.1, which promises to address the security. The first time this bug appeared, the company released iOS 12.3 to fix it. That update was released a few months earlier, in May. However, in the July patch, iOS 12.4, it accidentally removed the fix, resulting in the bug reappearing.
Apple said its latest update fixes a kernel vulnerability that could allow an attacker to execute code on an iPhone or iPad with full privileges.
These privileges, also known as "system or root privileges," can run applications on the device that are not normally allowed by Apple. This process, in which applications can gain access to parts of a device that are not allowed, is known as jailbreaking.
Jailbreaking allows users to customize their devices as they want and overcome company restrictions, but it can also expose the device to malware or spyware .
Spyware jailbreak exploits to access users’ messages, track their location, and listen to their calls without their victims knowing. States often hire specialists to remotely plant malware on the devices of activists, dissidents, and journalists. Washington Post journalist Jamal Khashoggi, who was murdered by agents of the Saudi regime, is believed to have been monitored by spyware. The company NSO Group, which is said to have supplied the agents with the spyware, denies any involvement.

So, in order to avoid all of the above, Apple decided to fix the bug.
The same vulnerability was fixed in a supplemental update for macOS (10.14.6).
