1 Introduction

It is well known that the EGB gravity is one of the most promising candidates for modified gravity. However, in four-dimensions, the Gauss–Bonnet term is a topological invariant and has no contribution to the field equation, which results in trivial black hole solutions in four dimensions. Recently, by rescaling the Gauss–Bonnet coupling parameter \(\alpha \rightarrow \alpha /(D-4)\) and then taking the limit \(D\rightarrow 4\), Glavan and Lin obtained a general covariant EGB modified theory of gravity in four-dimensions and presented a novel vacuum black hole solution [1, 2]. The novel 4D EGB gravity bypasses the Lovelock’s theorem and avoids Ostrogradsky instability. Thus, the Gauss–Bonnet term has nontrivial contribution to the gravitational field equations. Following the spirit of Glavan and Lin, Fernandes generalized their black hole solution to include electric charge and got a 4D charged spherical solution [3]. Later, applying Newman–Janis algorithm, Wei and Liu et al. obtained a 4D rotating EGB black hole solution [4, 5].

There are a lot of following papers inspired by the research of Glavan and Lin, such as the shadow and inner most stable circular orbits of black hole in the EGB gravity [4, 6,7,8], thin accretion disk around four-dimensional EGB black holes [9], spinning test particle in four-dimensional EGB black hole [10], gravitational lensing and bending of light [11,12,13], black hole as particle accelerator [14], black hole thermodynamics and phase transition [15,16,17,18,19], quasinormal modes and strong cosmic censorship [20,21,22], scalar field in 4D EGB black holes [23], cosmology in the EGB gravity [24], compact objects and their properties [25], the eikonal gravitational instability of asymptotically flat and (A)dS black holes [26], greybody factor and power spectra of the Hawking radiation [27, 28], other black hole solutions [29,30,31,32,33,34,35,36], and related topics about higher-derivative gravity in two dimensions [37, 38].

The weak cosmic censorship conjecture states that spacetime singularities arising in gravitational collapse should always been hidden behind black hole event horizons [39, 40]. Although lacking a general proof, the weak cosmic censorship conjecture has become one of the cornerstones for black hole physics. To test the validity of Penrose’ weak cosmic censorship conjecture, Wald proposed a gedanken experiment to check the validity of the weak cosmic censorship conjecture by throwing a particle with large charge or angular momentum into an extremal Kerr–Newman black hole [41]. The result demonstrates that particles causing the destruction of the event horizon would not be captured by the black hole. Later, Hubeny’s pioneer work shows that the horizon of a near-extremal charged black hole can be destroyed by dropping a charged test particle [42], the result is the same for a near-extremal Kerr black hole [43]. Recently, Sorce and Wald proposed a new version of the thought experiment to destroy a nearly extremal Kerr–Newman black hole at the second-order approximation of the perturbation that comes from the matter fields [44], the result shows that the event horizon of the Kerr–Newman black hole cannot be destroyed. Using the method of Sorce and Wald, the systematic works of Jiang et al. suggest that a series of black holes cannot be destroyed [45,46,47,48,49,50,51,52,53]. Another way of destroying the event horizon of a black hole to test the validity of the weak cosmic censorship conjecture is the scattering of a test classical field first proposed by Semiz [54], and further developed by others [55,56,57]. Recently, Gwak divided the scattering process into a series of infinitesimal time interval and considered an infinitesimal process only, the result shows that Kerr-(anti) de Sitter black holes cannot be overspun by a test scalar field [58], and many works have been done following this line [59,60,61,62,63]. The dividing of infinitesimal time interval process may provide clues that time interval for particles crossing the event horizon may be important for considering the weak cosmic censorship conjecture [64,65,66]. For other works to destroy the horizon of a black hole, see Refs. [67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85]. For a brief review on weak cosmic censorship conjecture with some thoughts see Ref. [86].

The weak cosmic censorship conjecture has become one of the cornerstones of black hole physics, and it has deep connection with the laws of black hole thermodynamics. The conjecture might be proved to be true, but the gedanken experiment can help us to understand it better and bring new insight on the relation between the weak cosmic censorship conjecture and the laws of black hole thermodynamics. Besides, it is also important to explore what is it that makes the conjecture to be true. On the other hand, if the final result proves that the weak cosmic censorship conjecture can indeed be violated, this might provide us the possibility to access regions of high curvature and provide us observable information to build a consistent theory of quantum gravity [87].

Recent researches of weak cosmic censorship conjecture in extended phase space have attracted a lot of attention, but also aroused controversy. The disagreement primarily focuses on the following point [88]: when a particle with energy E is dropped into a black hole in AdS space, the internal energy of the black hole \(U\equiv M-PV\) increases by the particle energy, i.e., after absorption of the particle, the internal energy of the black hole is \(U'=U+E\) instead of enthalpy \(M'=M+E\). The crucial flaw of this viewpoint is that it would lead to the violation of the second law of black hole thermodynamics. The viewpoint was opposed by Page et al.. They argued that when a particle is dropped into a black hole, it is the enthalpy that increases by the particle energy instead of the internal energy [89]. The argument of Page et al. preserves the second law of black hole thermodynamics naturally.

In this paper, we investigate the weak cosmic censorship conjecture of a novel 4D charged EGB black hole by the scattering of a massive charged scalar field and a charged test particle in the normal phase space, respectively. For scattering of a charged scalar field, our result suggests that both the extremal and near-extremal charged EGB black holes cannot be overcharged. For test particle injection, the study suggests that to first order an extremal 4D charged EGB black hole cannot be overcharged and a near-extremal black hole can be destroyed. However, to second order the validity of the weak cosmic censorship conjecture depends on the value of the Gauss–Bonnet coupling constant.

The structure of the paper is as follows. In Sect. 2, we briefly review the 4D charged EGB black hole and its thermodynamics. In Sect. 3, we explore the scattering of a massive complex scalar field in the 4D charged EGB black hole background and obtain the energy and charge fluxes of the complex scalar field. In Sect. 4, we check the validity of the weak cosmic censorship conjecture for extremal and near-extremal black holes by scattering of the charged scalar field. In Sect. 5, we check the possibility of overcharging the black hole by injection of a test charged particle. We compare our research with other works in Sect. 6. The last section is devoted to discussions and conclusions.

2 The novel 4D charged EGB black hole and its thermodynamics

The action of the EGB gravity with electromagnetic field in a D-dimensional spacetime is

$$\begin{aligned} S=\frac{1}{16\pi }\int d^Dx\left( R+\frac{\alpha }{D-4}L_{GB}-F_{\mu \nu }F^{\mu \nu }\right) , \end{aligned}$$
(1)

with the Gauss–Bonnet term

$$\begin{aligned} L_{GB}=R_{\mu \nu \rho \sigma }R^{\mu \nu \rho \sigma }-4R_{\mu \nu }R^{\mu \nu }+R^2, \end{aligned}$$
(2)

where \(\alpha \) is the Gauss–Bonnet coupling constant, and \(F_{\mu \nu }\) is the electromagnetic field strength tensor \(F_{\mu \nu }=\partial _\mu A_\nu -\partial _\nu A_\mu \), with \(A_\mu \) being the electromagnetic vector potential of the black hole.

In the effective action approach of string theory, the Gauss–Bonnet term is the leading order quantum correction to gravity [90]. The Gauss–Bonnet coupling constant is related to string scale and can be identified with the inverse of string tension. Besides, the Gauss–Bonnet coupling constant indicates the leading quantum gravity correction from string theory [91].

The static spherical charged black hole solution was obtained by solving the field equations in D-dimensional spacetime and taking the limit \(D\rightarrow 4\) in Ref. [3]:

$$\begin{aligned} ds^2= & {} -f(r)dt^2+\frac{1}{f(r)}dr^2+r^2(d\theta ^2+\sin ^2\theta d\phi ^2), \end{aligned}$$
(3)
$$\begin{aligned} f(r)= & {} 1+\frac{r^2}{2\alpha }\left[ 1-\sqrt{1+ 4\alpha \left( \frac{2M}{r^3}-\frac{Q^2}{r^4}\right) }\right] , \end{aligned}$$
(4)

with the electromagnetic 4-vector potential \(A=-Q/r \, \, \, \text {d}t\). The parameters M and Q are the mass and charge of the black hole, respectively. Taking the limit \(\alpha \rightarrow 0\), the metric reduce to the Reissner–Nordström black hole solution. The black hole solution has the same form with the one obtained in a comformal anomaly gravity [92, 93]. This spacetime is singular at \(r=0\) due to the divergence of curvature scalar.

The metric function can be written as

$$\begin{aligned} f(r)= & {} \frac{2(r^2-2Mr+Q^2+\alpha )}{r^2+2\alpha +\sqrt{r^4+4\alpha (2Mr-Q^2)}}\nonumber \\= & {} \frac{2\Delta }{r^2+2\alpha +\sqrt{r^4+4\alpha (2Mr-Q^2)}}, \end{aligned}$$
(5)

where we have defined

$$\begin{aligned} \Delta =r^2-2Mr+Q^2+\alpha . \end{aligned}$$
(6)

The event horizon is determined by the equation \(f(r)=0\), which is equivalent to the following equation

$$\begin{aligned} \Delta =r^2-2Mr+Q^2+\alpha =0. \end{aligned}$$
(7)

For a non-extremal charged EGB black hole, the above equation gives the inner and outer horizons

$$\begin{aligned} r_{\pm }=M\pm \sqrt{M^2-Q^2-\alpha }. \end{aligned}$$
(8)

The event horizon is the outer horizon \(r_+\). The two horizons coincide for an extremal black hole, and the degenerate horizon locates at \(r_{\text {ex}}=M\). For \(M^2<Q^2+\alpha \), the horizon disappears and there is no black hole. In this case, the metric describes a charged naked singularity. For convenience, we denote the event horizon \(r_+\) as \(r_{\text {h}}\) in the following.

The temperature of the black hole can be calculated as

$$\begin{aligned} T=\frac{r_{\text {h}}^2-Q^2-\alpha }{8\pi \alpha r_{\text {h}} +4\pi r_{\text {h}}^3}. \end{aligned}$$
(9)

The area of the event horizon of the black hole is

$$\begin{aligned} A=4\pi r_{\text {h}}^2, \end{aligned}$$
(10)

and the electric potential of the event horizon is

$$\begin{aligned} \phi _{\text {h}}=\frac{Q}{r_{\text {h}}}. \end{aligned}$$
(11)

The first law of thermodynamics for the black hole is [15]

$$\begin{aligned} dM=TdS+\phi _{\text {h}}dQ+\mathcal {A}d\alpha , \end{aligned}$$
(12)

with the entropy and the conjugate quantity \(\mathcal {A}\) to the coupling parameter \(\alpha \)

$$\begin{aligned} S= & {} \pi r^2_{\text {h}}+4\pi \alpha \ln \left( \frac{r_{\text {h}}}{\sqrt{|\alpha |}}\right) , \end{aligned}$$
(13)
$$\begin{aligned} \mathcal {A}= & {} \left( \frac{\partial M}{\partial \alpha }\right) _{S, Q}\nonumber \\= & {} \frac{\alpha +2 \ln \left( \frac{r_{\text {h}}}{\sqrt{|\alpha | }}\right) \left( \alpha -r_{\text {h}}^2+Q^2\right) +2 r_{\text {h}}^2-Q^2}{2 \left( 2 \alpha r_{\text {h}}+r_{\text {h}}^3\right) }. \end{aligned}$$
(14)

It is worth noting that the entropy of the 4D charged EGB black hole is different from the usual Bekenstein–Hawking entropy-area law due to the existence of the Gauss–Bonnet coupling constant \(\alpha \), and this entropy is consistent with that obtained from the Iyer–Wald formula [15, 29].

3 Charged massive scalar field in charged EGB space-time

3.1 The scattering for charged massive scalar field

We consider the scattering of charged massive scalar field in the 4D charged EGB spacetime background. The charged massive scalar field \(\Psi \) with mass \(\mu _{\text {s}}\) and charge q minimally coupled to the gravity is governed by the equation of motion

$$\begin{aligned} (\nabla _\mu -iqA_\mu )(\nabla ^\mu -iqA^\mu )\Psi -\mu _{\text {s}}^2\Psi =0, \end{aligned}$$
(15)

which can be written as

$$\begin{aligned} \frac{1}{\sqrt{-g}}(\partial _\mu -iqA_\mu )\left[ \sqrt{-g}g^{\mu \nu }(\partial _\nu -iqA_\nu ) \Psi \right] -\mu _{\text {s}}^2\Psi =0.\nonumber \\ \end{aligned}$$
(16)

Since the spacetime is static and spherically symmetric, the complex scalar field can be decomposed into the following form [94, 95]

$$\begin{aligned} \Psi (t,r,\theta ,\phi )=e^{-i\omega t} R_{lm}(r)Y_{lm}(\theta ,\phi ), \end{aligned}$$
(17)

where \( Y_{lm}(\theta ,\phi ) \) are spherical harmonic functions and \(R_{lm}(r)\) are the radial functions. Inserting the above equation into the equation of motion Eq. (16), we get the equation for the radial part

$$\begin{aligned}&\frac{1}{r^2}\frac{d}{dr}\left[ r^2f(r)\frac{dR_{lm}}{dr}\right] \nonumber \\&\quad + \left[ \frac{(\omega -\frac{qQ}{r})}{f(r)} -\frac{l(l+1)}{r^2}-\mu _{\text {s}}\right] R_{lm}=0, \end{aligned}$$
(18)

and angular part

$$\begin{aligned}&\left[ \frac{1}{\sin \theta }\frac{\partial }{\partial \theta }\left( \sin \theta \frac{\partial }{\partial \theta }\right) + \frac{1}{\sin ^2 \theta } \frac{\partial ^2}{\partial \phi ^2}\right] Y_{lm}\nonumber \\&\quad =-l(l+1)Y_{lm}, \end{aligned}$$
(19)

where \(l(l+1)\) is the separation constant and l takes positive integra values. The solutions to the angular part of the equation are the spherical harmonic functions. Since the angular solution is well known and it can be normalized to unity, we are more interested in the radial part.

To solve the radial equation, we introduce the tortoise coordinate as usual

$$\begin{aligned} \frac{dr}{dr_*}=f(r). \end{aligned}$$
(20)

Then, the radial equation has the following form

$$\begin{aligned}&\frac{d^2R_{lm}}{dr_*^2}+\frac{2f(r)}{r}\frac{dR_{lm}}{dr_*}\nonumber \\&\quad + \left[ (\omega -\frac{qQ}{r})^2 -f(r)\left( \frac{l(l+1)}{r^2}-\mu _{\text {s}}^2\right) \right] R_{lm} =0. \nonumber \\ \end{aligned}$$
(21)

when r varies from the horizon \(r_{\text {h}}\) to infinity, the tortoise coordinate ranges from \(-\infty \) to \(+\infty \) , and thus covers the whole space outside the event horizon.

It is convenient to investigate the radial equation near the horizon since we are more concerned with waves incident into the black hole. Near the horizon, Eq. (21) can be approximated as

$$\begin{aligned} \frac{d^2R_{lm}}{dr_*^2}+ \left( \omega -\frac{qQ}{r_\text {h}}\right) ^2R_{lm}=0. \end{aligned}$$
(22)

Using Eq. (11), the above equation can be written as the following form

$$\begin{aligned} \frac{d^2R_{lm}}{dr_*^2}+ \left( \omega -q\phi _\text {h}\right) ^2R_{lm}=0. \end{aligned}$$
(23)

The solution of the above radial equation is

$$\begin{aligned} R_{lm}(r)\thicksim \exp [\pm i(\omega -m\phi _\text {h})r_*]. \end{aligned}$$
(24)

The positive sign corresponds to outgoing wave modes; while, the negative sign corresponds to the ingoing wave modes. We choose the negative sign since the ingoing wave mode is the physically acceptable solution. Thus, the charged complex scalar field near the event horizon has the form

$$\begin{aligned} \Psi =\exp [-i(\omega -q\phi _\text {h})r_*]Y_{lm}(\theta ,\phi )e^{-i\omega t}. \end{aligned}$$
(25)

After obtaining the wave function, we can calculate the parameter changes of the black hole through the energy momentum and charge flux of the complex scalar field.

3.2 Thermodynamics during scattering of the charged scalar field

Since the 4D charged EGB black hole is non-rotating, we shoot a single wave mode \((l, m=0)\) into the black hole. The parameter changes of the black hole can be estimated from the fluxes of the charged scalar field during the scattering. The energy-momentum tensor of the charged scalar field is given by

$$\begin{aligned} T^\mu _\nu= & {} \frac{1}{2}\mathcal {D}^\mu \Psi \partial _\nu \Psi ^*+ \frac{1}{2}\mathcal {D}^{*\mu }\Psi ^*\partial _\nu \Psi - \delta ^\mu _\nu \left( \frac{1}{2}\mathcal {D}_\alpha \Psi \mathcal {D}^{*\alpha }\Psi ^* \right. \nonumber \\&\left. - \frac{1}{2}\mu _{\text {s}}\Psi \Psi ^*\right) , \end{aligned}$$
(26)

with

$$\begin{aligned} \mathcal {D}=\partial _\mu -iqA_\mu . \end{aligned}$$
(27)

From Eq. (26), it is easy to get the energy flux through the event horizon

$$\begin{aligned} \frac{dE}{dt}=\int _{\text {H}} T^r_t\sqrt{-g} \, d\theta d\phi =\omega (\omega -q\phi _\text {h})r_\text {h}^2. \end{aligned}$$
(28)

The electric current of the charged scalar field is

$$\begin{aligned} j^\mu =-\frac{1}{2}iq(\Psi ^*\mathcal {D}^{\mu }\Psi -\Psi \mathcal {D}^{*\mu }\Psi ^*). \end{aligned}$$
(29)

The charge flux through the event horizon is

$$\begin{aligned} \frac{dQ}{dt}=-\int _{\text {H}} j^r\sqrt{-g}d\theta d\phi =q(\omega -q\phi _\text {h})r_\text {h}^2. \end{aligned}$$
(30)

Where we have used the normalization condition for the spherical harmonic functions \(Y_{lm}(\theta ,\phi )\) in the integration. The ratio of the charge flux to the energy flux is \(q/\omega \) as indicated in Ref. [96].

From the fluxes of the energy and charge, it is clear that the energy and charge flow into the black hole for wave modes with \(\omega > q \phi _\text {h}\); while, the energy and charge fluxes are negative for wave modes with \(\omega < q\phi _\text {h}\), which indicates that the scalar field extract energy and charge from the black hole. This is called black hole superradiance [97].

Consider an infinitesimal time interval dt, the changes in the mass and charge of the black hole are

$$\begin{aligned} dM= & {} dE = \omega (\omega -q\phi _\text {h})r_\text {h}^2 \, dt , \end{aligned}$$
(31)
$$\begin{aligned} dQ= & {} q(\omega -q\phi _\text {h})r_\text {h}^2 \, dt. \end{aligned}$$
(32)

If we consider a black hole far from extremal, the final state is still a black hole after the absorption of the infinitesimal energy and charge of the complex scalar field. The change in the black hole configuration can be represented in terms of the frequency \(\omega \) and charge q of the complex scalar field. The change in the location of the horizon \(dr_{\text {h}}\) can be obtained from the condition

$$\begin{aligned} \Delta (M+dM, Q+dQ, r_{\text {h}}+dr_{\text {h}})= & {} \frac{\partial \Delta }{\partial M}dM+\frac{\partial \Delta }{\partial Q}dQ\nonumber \\&+\frac{\partial \Delta }{\partial r_{\text {h}}}dr_{\text {h}}=0. \end{aligned}$$
(33)

Then, we obtain the change of the horizon for the scattering process

$$\begin{aligned} dr_{\text {h}}=\frac{r_{\text {h}}dM-QdQ}{r_{\text {h}}-M}. \end{aligned}$$
(34)

The change of the black hole area is

$$\begin{aligned} dA=\frac{8\pi r_{\text {h}}^2}{\sqrt{M^2-Q^2-\alpha }}\, (\omega -q\phi _{\text {h}})^2\, \, dt, \end{aligned}$$
(35)

which is always positive. This indicates that the area of the event horizon never decreases during the scattering of the complex scalar field, and it is consistent with Hawking’s area increasing theorem, which states that the area of a black hole event horizon never decreases during classical process [98, 99].

4 Overcharging the black hole with the charged massive scalar field

In this section, we investigate whether extremal and near-extremal 4D charged EGB black holes can be destroyed by the charged scalar field during the scattering. We shoot a monotonic classical test complex scalar field with frequency \(\omega \) and azimuthal harmonic index \(m=0\) into the extremal or near-extremal charged EGB black holes. To examine whether we can overcharge the black hole, we only need to check the existence of event horizon after the scattering.

The metric function \(\Delta \) determines the black hole event horizon

$$\begin{aligned} \Delta =r^2-2Mr+Q^2+\alpha . \end{aligned}$$
(36)

The metric function \(\Delta \) takes the minimal value at the point \(r_{\text {min}}=M\) with

$$\begin{aligned} \Delta _{\text {min}}=Q^2+\alpha -M^2. \end{aligned}$$
(37)

If the minimum of the metric function is negative or zero, the metric describes a black hole; while, if the minimal value of \(\Delta \) is positive, there is no black hole.

It is convenient for us to consider a small time interval dt. For the whole scattering process, we can divide it into a series of small time intervals and consider each intervals separately by only changing the parameters of the black hole.

In the the small time interval dt, the black hole absorbs the complex scalar field with energy dE and charge dQ. The change of the black hole parameters are

$$\begin{aligned} M\rightarrow & {} M'=M+dM,~~~~\nonumber \\ Q\rightarrow & {} Q'=Q+dQ, ~~~~\nonumber \\ \alpha\rightarrow & {} \alpha '=\alpha . \end{aligned}$$
(38)

When the fluxes of the charged scalar field enter into the black hole, the minimum of the metric function \(\Delta _{\text {min}}\) changes to \(\Delta '_{\text {min}}\),

$$\begin{aligned} \Delta '_{\text {min}}= & {} \Delta '_{\text {min}}(M+dM, Q+dQ, \alpha ) \nonumber \\= & {} \Delta _{\text {min}} +\left( \frac{\partial \Delta _{\text {min}}}{\partial M}\right) _{Q,\alpha }dM+ \left( \frac{\partial \Delta _{\text {min}}}{\partial Q}\right) _{M,\alpha }dQ\nonumber \\= & {} -(M^2-Q^2-\alpha )+2QdQ-2MdM. \end{aligned}$$
(39)

To check the validity of the weak cosmic censorship conjecture, we assume the black hole starts out extremal or very close to extremal. Now, the question is whether the metric function \(\Delta =0 \) has a positive solution after the black hole absorbs the test charged scalar field during the scattering, or equivalently, whether the minimum \(\Delta _{\text {min}}\) of the metric function is positive after the absorption of the charged scalar field.

For a near-extremal black hole, the event horizon radius \(r_{\text {h}}\) is extremely close to the point of minimal value \(r_{\text {min}}=M\), we define an infinitesimal distance \(\epsilon \) between the event horizon \(r_{\text {h}}\) and the minimal point \(r_{\text {min}}\):

$$\begin{aligned} r_\text {h}=r_{\text {min}}+\epsilon . \end{aligned}$$
(40)

It is clear that \(\epsilon >0\) describes a near-extremal black hole and \(\epsilon =0\) correspond to the extremal black hole. Before the absorption of the scalar field, we can write the minimum of the metric function \(\Delta \) as

$$\begin{aligned} \Delta _{\text {min}}=Q^2+\alpha -M^2=-\epsilon ^2. \end{aligned}$$
(41)

During the infinitesimal time interval dt of the scattering, the black hole absorbs the charged scalar field and the minimum of the metric function \(\Delta _{\text {min}}\) becomes \(\Delta '_{\text {min}}\):

$$\begin{aligned} \Delta '_{\text {min}}= -(M^2-Q^2-\alpha )-2MdM +2QdQ. \end{aligned}$$
(42)

Plugging Eqs. (31) and (32) into the above equation and to first order in dt, we have

$$\begin{aligned} \Delta '_{\text {min}}= -\epsilon ^2-2Mq^2\left( \frac{\omega }{q}-\phi _{\text {h}}\right) \left( \frac{\omega }{q}-\frac{Q}{M}\right) r_{\text {h}}^2 \, dt, \end{aligned}$$
(43)

where \(\phi _\text {h}\) is the electric potential of the black hole as defined in Eq. (11).

To check the validity of the weak cosmic censorship conjecture for the 4D charged EGB black hole, we consider extremal black hole first. For extremal 4D charged EGB black hole, we have

$$\begin{aligned} M^2-Q^2-\alpha =0, \end{aligned}$$
(44)

and the electric potential

$$\begin{aligned} \phi _{\text {h}}=\frac{Q}{M}. \end{aligned}$$
(45)

Then, after the absorption of the charged scalar field, the minimal value of the metric function is

$$\begin{aligned} \Delta '_{\text {min}}=-2Mq^2\left( \frac{\omega }{q} -\phi _{\text {h}}\right) ^2r_{\text {h}}^2dt, \end{aligned}$$
(46)

which is always negative. It is clear that the extremal black hole becomes non-extremal and has two event horizons after absorption of scalar field with \(\omega \ne q\phi _{\text {h}}\). While for charged scalar field with \(\omega =q\phi \), the extremal black hole will still be extremal since the scalar field neither be absorbed nor extract energy from the black hole. This suggests that the extremal black hole cannot be overcharged, and the weak cosmic censorship conjecture is valid for extremal 4D EGB black hole.

For a near-extremal 4D EGB black hole, we only need to check whether the charged scalar field with mode

$$\begin{aligned} \frac{\omega _0}{q}=\frac{1}{2}\left( \frac{Q}{M}+ \phi _{\text {h}}\right) \end{aligned}$$

can destroy the event horizon. Since scalar field belongs to this mode, the metric function \(\Delta '_{\text {min}}\) is the largest. Thus, the near-extremal black hole can be destroyed unless this mode of the scalar field can overcharge the black hole.

We shoot a wave with the mode \((\omega _0, m=0) \) into the near-extremal 4D charged EGB black hole. Then, the minimal value of the metric function is

$$\begin{aligned} \Delta '_{\text {min}}=-\epsilon ^2+\frac{q^2Q^2}{2M}\epsilon ^2dt. \end{aligned}$$
(47)

Since the time interval is infinitesimal and \(dt\sim \epsilon \). Then, we have

$$\begin{aligned} \Delta '_{\text {min}}=-\epsilon ^2+ \frac{q^2Q^2}{2M}\epsilon ^3<0. \end{aligned}$$
(48)

Which shows that the near-extremal 4D charged EGB black hole always has two event horizons after the scattering. This indicates that near-extremal 4D EGB black hole cannot be overcharged and the weak cosmic censorship conjecture is valid.

Thus, both extremal and near-extremal 4D charged EGB black holes cannot be overcharged by the charged scalar field during the scattering and the weak cosmic censorship conjecture is valid. It is worth noting that for charged scalar field injection the Gauss–Bonnet coupling constant has no effect on the validity of the weak cosmic censorship conjecture. The weak cosmic censorship conjecture is still valid for both positive and negative coupling constant, and for vanishing Gauss–Bonnet coupling constant, the result recovers to that of Reissner–Nordström black hole.

5 Overcharging the black hole with test particle

Now we attempt to destroy the event horizon of the 4D charged EGB black hole with a test charged particle. The gedanken experiment to destroy the event horizon of an extremal black hole with large charge or large angular momentum was first designed by Wald [41]. The research demonstrates that the repulsion force is just great enough to prevent particles causing the destruction of event horizon to be captured by extremal Kerr–Newman black hole. Further research of Hubeny suggests that a near-extremal charged black hole can be overcharged [42]. The work of Jacobson and Sotiriou for Kerr black hole further supports that near-extremal black hole can violate the weak cosmic censorship conjecture [43]. In this section, we use this method to check the validity of the weak cosmic censorship conjecture for 4D charged EGB black hole and consider the effect of the Guass–Bonnet coupling constant on the validity of weak cosmic censorship conjecture.

We shoot a test particle with rest mass m and charge \(\delta Q\) into the black hole on the radial direction. Due to the presence of electric repulsion force, the trajectory for the test charged particle in the 4D charged EGB spacetime is not geodesic. The equation of motion for the charged particle can be derived from the Lagrangian

$$\begin{aligned} L= \frac{1}{2}mg_{\mu \nu }\frac{dx^\mu }{d\tau }\frac{dx^\nu }{d\tau } +\delta Q A_\mu \frac{dx^\mu }{d\tau }. \end{aligned}$$
(49)

From the Eular–Lagrangian equation, we can get the equation of motion, which is

$$\begin{aligned} \frac{d^2x^\mu }{d\tau ^2}+ \Gamma ^\mu _{\alpha \beta }\frac{dx^\alpha }{d\tau }\frac{dx^\beta }{d\tau }=\frac{\delta Q}{m}F^\mu _{~~ \nu }\frac{dx^\nu }{d\tau }. \end{aligned}$$
(50)

Where \(F^{\mu \nu }\) is the electromagnetic field tensor of the 4D charged EGB spacetime,

$$\begin{aligned} F=\text {d}A=\frac{Q}{r^2}\text {dr}\wedge \text {dt}. \end{aligned}$$
(51)

Since we shoot the charged test particle into the black hole along the radial direction, the angular momentum of the particle is zero. The energy \(\delta E\) of the particle is

$$\begin{aligned} \delta E =-P_t=-\frac{\partial L}{\partial \dot{t}}= -mg_{00}^{~}\frac{dt}{d\tau }-\delta QA_t, \end{aligned}$$
(52)

and the angular momentum of the particle

$$\begin{aligned} P_\theta= & {} \frac{\partial L}{\partial \dot{\theta }}=mg_{22}^{~}\frac{d\theta }{d\tau }=0, \end{aligned}$$
(53)
$$\begin{aligned} P_\phi= & {} \frac{\partial L}{\partial \dot{\phi }}=mg_{33}^{~}\frac{d\phi }{d\tau }=0. \end{aligned}$$
(54)

To check the validity of the weak cosmic censorship conjecture for the 4D charged EGB black hole, we first find the condition for particles to enter into the black hole, and then check whether the particle can destroy the event horizon of the black hole.

The four velocity of a massive particle is time-like and an unit vector, then, we have

$$\begin{aligned} U^\mu U_\mu= & {} g_{\alpha \beta }\frac{dx^\alpha }{d\tau } \frac{dx^\beta }{d\tau }\nonumber \\= & {} \frac{1}{m^2}g^{\alpha \beta }(P_\alpha -\delta QA_{\alpha })( P_\beta -\delta QA_\beta ) =-1. \end{aligned}$$
(55)

Substituting the energy \(\delta E\) and angular momentum \(P_\theta \) and \(P_\phi \) into the above equation, we have

$$\begin{aligned} g^{00}\delta E^2+2g^{00}A_{t}\delta Q\delta E+g^{00}A_t^2\delta Q^2+g^{11}P_r^2 + m^2=0.\nonumber \\ \end{aligned}$$
(56)

The above equation is a quadratic equation for \(\delta E\). Solving the equation, we can get the energy of the charged particle,

$$\begin{aligned} \delta E=-A_t\delta Q- \frac{1}{g^{00}}{\left[ - g^{00}(g^{11}P_r^2+m^2)\right] ^{\frac{1}{2}}}. \end{aligned}$$
(57)

Where we have chosen the future directed solution \(dt/d\tau >0\). Since the trajectory of a massive particle outside the event horizon of the 4D charged EGB black hole should be time-like and future directed. The future directed condition \(dt/d\tau >0\) is equivalent to the following condition

$$\begin{aligned} \delta E>-A_t\delta Q. \end{aligned}$$
(58)

A particle falling into a black hole must cross the event horizon. Hence, the future directed condition for the charged particle at the event horizon implies

$$\begin{aligned} \delta E>\frac{Q}{r_\text {h}}\delta Q=\phi _\text {h} \delta Q. \end{aligned}$$
(59)

Thus, the condition for the particle to enter into the black hole is

$$\begin{aligned} \delta E>\delta E_{\text {min}}\equiv \phi _{\text {h}}\delta Q. \end{aligned}$$
(60)

This constraint guarantees that the test charged particle shooting into the black hole can fall into the event horizon. The constraint can also be derived from the null energy condition as in Ref. [43].

On the other hand, to overcharge the black hole, the energy of the particle should not be too large. Thus, there should be an upper bound on the energy of the particle. To first order, the condition to overcharge the black hole is

$$\begin{aligned} \Delta '_{\text {min}}= & {} -(M+\delta E)^2+(Q+\delta Q)^2+\alpha \nonumber \\= & {} -M^2+Q^2+\alpha -2M\delta E+2Q\delta Q>0, \end{aligned}$$
(61)

which can be written as

$$\begin{aligned} \delta E<\delta E_{\text {max}}=\frac{Q}{M}\delta Q-\frac{M^2-Q^2-\alpha }{2M}. \end{aligned}$$
(62)

As long as the energy and charge of the test particle satisfy the two conditions Eqs. (60) and (62), the horizon of the 4D charged EGB black hole can be destroyed and the weak cosmic censorship conjecture can be violated.

If the 4D charged EGB black hole starts out extremal, then we have \(M^2-Q^2-\alpha =0\) and \(\phi _{\text {h}}=Q/M \). Therefore, we have

$$\begin{aligned} \delta E_{\text {max}} = \frac{Q}{M}\delta Q =\delta E_{\text {min}}. \end{aligned}$$
(63)

So \(\delta E_{\text {min}}\) never less than \(\delta E_{\text {max}}\). This indicates that particles causing the destruction of the event horizon just not be captured by the extremal 4D charged EGB black hole. This was claimed long ago by Wald for Kerr–Newman black hole [41].

However, if the black hole starts out very close to extremal, the event horizon of the black hole satisfys the inequality \(r_{\text {h}}=M+\sqrt{M^2-Q^2-\alpha }>M\). This inequality implies \(\phi _{\text {h}}=Q/r_{\text {h}}<Q/M\). To first order, it is clear that there exist values of \(\delta E\) satisfying both inequalities Eqs. (60) and (62). So a near-extremal 4D charged EGB black hole can be overcharged and the weak cosmic censorship conjecture can be violated. Note that to first order, the Gauss–Bonnet coupling constant has no significant effect on the validity of the weak cosmic censorship conjecture.

Next, we consider the second order. To second order, the condition for overcharging the 4D charged EGB black hole is

$$\begin{aligned} \Delta '_{\text {min}}= -(M+\delta E)^2+(Q+\delta Q)^2+\alpha >0. \end{aligned}$$
(64)

The condition to overcharge the 4D charged EGB black hole becomes that of Reissner–Nordström black hole for vanishing Gauss–Bonnet coupling constant. As previous research of Hubeny [42] shows that extremal Reissner–Nordström black hole cannot be overcharged while near-extremal one can violate the weak cosmic censorship conjecture.

For positive coupling constant \(\alpha \), the condition to destroy the event horizon of the black hole is

$$\begin{aligned} \frac{(\delta E+M)^2}{\alpha }-\frac{(\delta Q+Q)^2}{\alpha }<1. \end{aligned}$$
(65)

The above inequality describes a region below the upper branch of a hyperbola. It is clear from Fig. 1 that there exist particles with values of \(\delta E\) and \(\delta Q\) such that the two conditions (60) and (65) can be satisfied simultaneously both for extremal and near-extremal 4D charged EGB black holes. Hence, to second order, both extremal and near-extremal 4D charged EGB black holes can be destroyed for positive coupling constant.

Fig. 1
figure 1

Energy bounds for the charged particle \(\delta E_{\text {max}}\) (black solid lines) and \(\delta E_{\text {min}}\) (red dashed lines) vs. charge of the particle \(\delta Q\) for extremal and near-extremal 4D charged EGB black hole for positive coupling constant. Where we have choose the mass \(M=2\) for the black hole, the Gauss–Bonnet coupling constant \(\alpha =3\), and a charge of the extremal black hole \(Q=1\), b charge of the near-extremal black hole \( Q=0.9\). The grey region is for \(\delta E_{\text {max}}>\delta E_{\text {min}}\)

We emphasize here, that due to the existence of the positive coupling constant, extremal charged EGB black hole can be overcharged, which is contrary to previous research that other extremal black holes cannot be overcharged or overspun by a test particle [41, 43].

For negative coupling constant \(\alpha \), the condition to overcharge the black hole is

$$\begin{aligned} \frac{(\delta Q+Q)^2}{|\alpha |}-\frac{(\delta E+M)^2}{|\alpha |}>1. \end{aligned}$$
(66)

This gives the upper bound of energy for the particle

$$\begin{aligned} \delta E<\delta E_{\text {max}}=\sqrt{(\delta Q+Q)^2-|\alpha |}-M. \end{aligned}$$
(67)

Some algebra reveals that \(\delta E_{\text {min}}\) never less than \(\delta E_{\text {max}}\) for extremal 4D charged EGB black hole. So the event horizon of extremal 4D charged EGB black hole cannot be destroyed.

For near-extremal 4D charged EGB black hole, the validity of the weak cosmic censorship conjecture depends on the value of the Gauss–Bonnet coupling constant \(\alpha \). If \(0<-\alpha<<M\), the charge of the near-extremal black hole \(Q\sim M\). The horizon of the black hole can be destroyed as that of Reissner–Nordström black hole. While for \(-\alpha>>M\), the charge of the near-extremal black hole \(Q>>M\). In this case, there is not any value of \(\delta E\) satisfying both inequality (60) and (67), which shows that near-extremal black hole cannot be overcharged. Physically, this is because the electric repulsion force is too large for the charged particle to enter into the black hole.

Hence, to first order, extremal 4D charged EGB black hole cannot be overcharged; while the event horizon of near-extremal black hole can be destroyed. To second order, however, both extremal and near-extremal 4D charged EGB black hole can be destroyed for positive Gauss–Bonnet coupling constant; for negative Gauss–Bonnet coupling constant, extremal black hole cannot be overcharged and the validity of the weak cosmic censorship conjecture for near-extremal black hole depends on the value of the Gauss–Bonnet coupling constant.

6 Comparing with other works

After our article appeared in arXiv a day later, Ying also posted a paper about weak cosmic censorship conjecture for the novel 4D charged EGB black hole on arXiv [100]. There are some similarities and differences between our work and Ying’s research.

In our work, both charged scalar field scattering gedanken experiment and charged particle absorption experiment in the normal phase space were investigated. We considered the minimal value of the event horizon function \(\Delta '_{\text {min}}\) to first order for scalar field scattering; and both first and second order for the minimal value of the event horizon function \(\Delta '_{\text {min}}\) for charged particle absorption.

Ying considered particle absorption gedanken experiment both in the normal phase space and in the extended phase space, but the calculation of the minimal value of the event horizon function \(f(r_{\text {min}})\) (in Ying’s symbol) only to first order after the absorption of a charged particle.

In our work, we set the cosmological constant \(\Lambda =0\), which makes it easier to calculate the minimal of the event horizon function \(\Delta '_{\text {min}}\) to second order for particle injection. This leads to many interesting results, which cannot be derived from first order approximation, such as an extremal black hole can be overcharged for positive Gauss–Bonnet coupling constant. This is the main reason we only considered weak cosmic censorship conjecture in the normal phase space.

To first order of the minimal of the event horizon function, Ying’s work should be the same with our research for particle absorption in the normal phase space, but Ying made a mistake in the estimation of the minimal of the event horizon function. After correcting the mistake, to first order, Ying’s work is the same with our research.

In Ying’s work, after the near-extremal black hole absorbing a charged particle with energy \(E=q\Phi +| P^r(r_+)|\) and charge q, the minimal of the event horizon function is

$$\begin{aligned} f(r_{\text {min}}+dr_{\text {min}})= & {} \delta -\frac{2| P^r(r_+)|}{r_{\text {min}}+ \frac{2\alpha }{r_{\text {min}}}(1-\delta )}\nonumber \\&+ \frac{2Qq\epsilon '}{r_+^2(1-\epsilon '^2)+ \alpha (1-\delta )}, \end{aligned}$$
(68)

where

$$\begin{aligned} \delta \equiv f(r_{\text {min}})\le 0 \end{aligned}$$
(69)

and

$$\begin{aligned} r_{\text {min}}=r_+(1-\epsilon '). \end{aligned}$$
(70)

Ying then claimed that the third term of Eq. (68) can be neglected in the near-extremal black hole case since \(0<\epsilon '< < 1\), then Ying got the following result

$$\begin{aligned} f(r_{\text {min}}+dr_{\text {min}})= \delta -\frac{2| P^r(r_+)|}{r_{\text {min}}+ \frac{2\alpha }{r_{\text {min}}}(1-\delta )}<0, \end{aligned}$$
(71)

and claimed that the weak cosmic censorship conjecture is valid for the near-extremal black hole. However, for vanishing Gauss–Bonnet coupling constant \(\alpha \rightarrow 0 \), Ying’s conclusion contradicts with Hubeny’s seminal work that a near-extremal Reissner–Nordström black hole can be overcharged in test particle approximation [42]. The reason for the contradiction is that Ying neglected the third term in Eq. (68).

The minimal of the event horizon function \(\delta \equiv f(r_{\text {min}})\) for near-extremal black hole is of order \(\epsilon '\), and we can choose injected particles with large charge q but small radial momentum \(0<|P^r(r_+)|<\epsilon '\ll 1\). The particle can cross the event horizon, since the energy of the particle \(E=q\Phi +| P^r(r_+)|\) is large, too. In this case, after the absorption of the charged particle, the minimal of the event horizon function (68) can be positive. This leads to the result that weak cosmic censorship conjecture can be violated for a near-extremal black hole, and the result can be recovered to that of Reissner–Nordström black hole for vanishing Gauss–Bonnet coupling constant.

7 Discussion and conclusions

In this paper, we have explored the scenario of destroying the event horizon of the novel 4D charged EGB black hole with test field and test particle respectively. For the test charged field thought experiment, the result suggests that both extremal and near-extremal black hole cannot violate the weak cosmic censorship conjecture, and the result is independent of the Gauss–Bonnet coupling constant. For the test charged particle gedanken experiment, to first order, extremal 4D charged EGB black hole cannot be overcharged and near-extremal black hole can be destroyed; to second order, however, both extremal and near-extremal 4D charged EGB black hole can be overcharged for positive Gauss–Bonnet coupling constant; for negative Gauss–Bonnet coupling constant, extremal black hole cannot be overcharged and the validity of the weak cosmic censorship conjecture for near-extremal black hole depends on the Gauss–Bonnet coupling constant.